<template>
  <div id="app"></div>
</template>

<script>
import { queryAllGames } from '@/api/game.js'

export default {
  name: 'App',
  methods: {
    queryAllGames () {
      queryAllGames().then(res => {
        console.log(res)
      }).catch(err => {
        console.log(err)
      })
    }
  },
  created () {
    this.queryAllGames()
  }
}
</script>
